//
//  LYGroupBuyViewController.m
//  lottery
//
//  Created by 赵国腾 on 16/6/13.
//  Copyright © 2016年 赵国腾. All rights reserved.
//

#import "LYGroupBuyViewController.h"
#import "LYTitleView.h"

@interface LYGroupBuyViewController ()

@property (nonatomic, strong) LYTitleView *titleView;

@end

@implementation LYGroupBuyViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    LYTitleView *titleView = [LYTitleView buttonWithType:UIButtonTypeCustom];
    
    self.titleView = titleView;
    
    [titleView sizeToFit];
    [titleView setTitle:@"全部彩种" forState:UIControlStateNormal];
    [titleView setImage:[UIImage imageNamed:@"YellowDownArrow"] forState:UIControlStateNormal];
    
    self.navigationItem.titleView = titleView;
    
    
    // 右侧按钮
    self.navigationItem.rightBarButtonItem = [[UIBarButtonItem alloc] initWithTitle:@"助手" style:UIBarButtonItemStylePlain target:self action:@selector(help)];
    
}

- (void)help {
    
    [self.titleView setTitle:@"全部彩种全部彩种" forState:UIControlStateNormal];
    [self.titleView setImage:nil forState:UIControlStateNormal];
}

@end

















